package org.jsets.fastboot.uid.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;
import com.baidu.fsg.uid.worker.DisposableWorkerIdAssigner;
import com.baidu.fsg.uid.worker.WorkerIdAssigner;

/**
 * Zookeeper WorkerId 提供者
 * @author wangjie (https://github.com/wj596)
 *
 */
public class ZookeeperWorkerIdAssigner implements WorkerIdAssigner {
	
    private static final Logger LOGGER = LoggerFactory.getLogger(DisposableWorkerIdAssigner.class);

	public ZookeeperWorkerIdAssigner() {
	}

    /**
     * Assign worker id base on database.<p>
     * If there is host name & port in the environment, we considered that the node runs in Docker container<br>
     * Otherwise, the node runs on an actual machine.
     * 
     * @return assigned worker id
     */
    @Transactional
    public long assignWorkerId() {
        return 0l;
    }

  
}
